<?php

namespace Application\Form;

use Zend\Form\Annotation;

/**
 * @Annotation\Hydrator("Zend\Stdlib\Hydrator\ObjectProperty")
 * @Annotation\Name("form_change_password")
 */
class ChangePasswordForm {

    /**
     * @Annotation\Type("Zend\Form\Element\Password")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filters({"name":"StripTags"},{"name":"StringTrim"})
     * @Annotation\Validator({"name":"StringLength","options":{"min":"5","max":"40"}})
     * @Annotation\Options({"label":"Tên đăng nhập:"})
     * @Annotation\Attributes({"id":"oldPassword"})
     * @Annotation\Attributes({"class":"textboxStyle"})
     */
    public $oldPassword;

    /**
     * @Annotation\Type("Zend\Form\Element\Password")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filters({"name":"StripTags"},{"name":"StringTrim"})
     * @Annotation\Validator({"name":"StringLength","options":{"min":"5","max":"40"}})
     * @Annotation\Options({"label":"Mật khẩu mới:"})
     * @Annotation\Attributes({"id":"newPassword"})
     * @Annotation\Attributes({"class":"textboxStyle"})
     */
    public $newPassword;

    /**
     * @Annotation\Type("Zend\Form\Element\Password")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filters({"name":"StripTags"},{"name":"StringTrim"})
     * @Annotation\Validator({"name":"StringLength","options":{"min":"5","max":"40"}})
     * @Annotation\Options({"label":"Xác nhận mật khẩu mới:"})
     * @Annotation\Attributes({"id":"confirmPassword"})
     * @Annotation\Attributes({"class":"textboxStyle"})
     */
    public $confirmPassword;

    /**
     * @Annotation\Type("Zend\Form\Element\Submit")
     * @Annotation\Attributes({"value":"Đổi mật khẩu"})
     * @Annotation\Attributes({"id":"changePassword","class":"changePassword","name":"changePassword"})
     */
    public $changePassword;

}

?>